Repository navigation
[Fix] Restore macOS attachments and prepare v0.0.17 - #571
Conversation
Signed-off-by: samzong <samzong.lu@gmail.com>
|
Hi @samzong, DetailsInstructions for interacting with me using comments are available here. Execution log |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: samzong DetailsNeeds approval from an approver in each of these areas:
Approvers can indicate their approval by writing |
|
This pr is currently missing a label matching the regular expression Execution log |
Signed-off-by: samzong <samzong.lu@gmail.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77630b6e80
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const targetStat = await stat(realTarget).catch(() => null); | ||
| if (!targetStat || targetStat.dev !== openedStat.dev || targetStat.ino !== openedStat.ino) return null; |
There was a problem hiding this comment.
Preserve atomic confinement checks in the unresolved-fd fallback
When /dev/fd remains unresolved, as on macOS, a process that can modify the inbox can bypass this check: initially point the attachment at an outside file so open() obtains its descriptor, replace the symlink with an ordinary inbox file during resolveValidatedPath(), then restore the outside-pointing symlink before stat(realTarget). Because stat() follows symlinks, its device/inode now matches the outside descriptor, and readFile() returns that file's contents through inbox:read-file. I reproduced this with real temporary files while emulating the unresolved descriptor alias. The fallback needs descriptor-based confinement or race-resistant traversal, plus a symlink-swap regression test, to preserve the fd-centric/no-TOCTOU requirement in docs/agent-rules/main-process.md.
AGENTS.md reference: AGENTS.md:L27-L27
Useful? React with 👍 / 👎.
Summary
Prepare the stable v0.0.17 release, restore inbox attachment reads on macOS after an app restart, and stop macOS release publishing when signing or notarization fails.
Type of change
[Fix]bug fix[Build]CI, packaging, or tooling change[Chore]maintenanceWhy is this needed?
All seven workspace manifests must match the release tag. Local desktop E2E tests found that macOS leaves
/dev/fd/<fd>aliases unresolved, so valid inbox attachments were rejected. In addition,.github/workflows/release.ymlskipped signing whenAPPLE_CERTIFICATEwas empty and retried with ad-hoc signing after notarization failures.What changed?
0.0.17and move the curated unreleased notes under the dated0.0.17release entry..github/workflows/release.yml, remove the ad-hoc signing retry, and pass-c.mac.type=distribution -c.mac.forceCodeSigning=truetoelectron-builderon macOS.packages/desktop/test/release-scripts.test.tsand cover unresolved descriptor aliases and file replacement inpackages/desktop/test/inbox-resolve.test.ts.Architecture impact
docs/architecture-invariants.md: filesystem reads stay confined to<workspace>/<taskId>/inboxand read from the opened file handle.dev/inomatching run beforereadFileon the opened descriptor, and the release workflow fails beforeverify-releaseorpublish-release-notescan publish a draft release.Linked issues
No linked issue.
Validation
pnpm lintpnpm testpnpm buildpnpm check:ui-contractCommands and results:
Unverified
Remote CI on the updated commit, live Apple signing and notarization on GitHub-hosted macOS runners, Windows x64 packaging, and final v0.0.17 release assets await the remote workflow runs. No release tag exists yet.
Screenshots or recordings
Not applicable. No renderer layout or style files changed.
Release note
Checklist
git commit -s)[Feat],[Fix],[UI],[Docs],[Refactor],[Build], or[Chore]